﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using HZ.MBSM.DBUtility; 

public partial class Manage_Boardinfo : System.Web.UI.Page
{
    public  string  boardID;
    protected void Page_Load(object sender, EventArgs e)
    {
        boardID = SysFun.IsSQL(SysFun.ToTrim(Request.QueryString["pid"]));

        if (!this.IsPostBack)
        {
            if (boardID != "" && boardID != null)
            {
                string sql = " select tiwenren,content,explain from board  ";
                sql += " WHERE ID = " + boardID;
                Db db = new Db();
                System.Data.IDataReader dr;
                dr = db.DataReader(sql);
                if (dr.Read())
                {
                    tiwenren.Text = dr["tiwenren"].ToString();
                    content.Text = dr["content"].ToString();
                    explain.Text = dr["explain"].ToString();
                   
                }
                db.Close();
            }
        }

    }
}